package com.insist.dao;

import com.insist.entity.CartInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Administrator on 2016/6/30.
 */
public interface CartInfoDao extends JpaRepository<CartInfo,Long> {
    CartInfo getByProductIdAndUserId(Long productId, Long userId);

    List<CartInfo> findByUserId(Long userId);
}
